package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Idle extends AbstractMethod {
    private static final String name = "idle";
    /**
    Emit barrier based on idle time since the last received message. Must be greater than zero.
    **/
    /**
    根据自上次收到消息以来的空闲时间发出屏障。必须大于零。
    **/
    public Idle(long interval, String durationLiteral) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new OriginalArg(interval + durationLiteral));

    }
}
